str1 = input("请输入：")
str2 = ""
for i in str1:
    if i >= "a" and i <= "z":
        str2 += "0"
    elif i >= "A" and i <= "Z":
        str2 += "1"
    else:
        str2 += i
print(str2)
